一曲肝肠断[戏].js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. var rule = {
  2. title: '一曲肝肠断',
  3. host: 'https://fly.daoran.tv',
  4. url: '/API_ROP/search/album/screen',
  5. headers: {
  6. 'User-Agent': 'okhttp/3.12.10',
  7. 'Connection': 'Keep-Alive',
  8. 'Accept-Encoding': 'gzip',
  9. 'md5': 'SkvyrWqK9QHTdCT12Rhxunjx+WwMTe9y4KwgeASFDhbYabRSPskR0Q==',
  10. 'Content-Type': 'application/json; charset=UTF-8',
  11. 'Cookie': 'JSESSIONID=41ABA76E6D45A44D6419B3F26A0851ED'
  12. },
  13. class_name: '豫剧&黄梅戏&越剧&京剧&评剧&曲剧&坠子&秦腔&河北梆子&潮剧&粤剧&沪剧&二夹弦&昆曲&河南琴书&淮剧&单弦&西秦戏&婺剧&上党梆子&白字戏&河南大鼓书&越调&滇剧&太康道情&民族音乐&扬剧&其他&曲艺晚会&二人台&北路梆子&彩调&乐腔&老年大学&吕剧&天津时调&戏曲&柳琴戏&京韵大鼓&皮影戏&湘剧&四平调&琼剧&锡剧&评书&绍剧&京东大鼓&庐剧&话剧&西河大鼓&莆仙戏&花鼓戏&川剧&相声&宛梆&晋中秧歌&采茶戏&蒲剧&汉剧&闽剧&晋剧&北京琴书&山歌剧&吉剧&正字戏&赣剧&麦田乡韾&楚剧&大平调&保定老调',
  14. class_url: 'yuju&hmx&yueju&jingju&pingju&quju&hnzz&qinq&hbbz&chaoju&gddx&huju&ejx&kunqu&hnqs&huaiju&danxian&xqx&wuju&SDBZ&bzx&hndgs&yued&dianju&tkdq&MZYY&yangju&other&else&ERT&blbz&caidiao&lq&WK&lvjv&tjsd&xq&liuqx&jydg&pyx&xj&spd&qiongju&xiju&pingshu&shaojv&jddg&luju&huaju&xhdg&huagx&chuanju&xiang&wb&jzyg&caichaxi&pujv&hj&minju&jinju&bjqs&sgj&jiju&zzx&gj&chuju&dpd&bdld',
  15. play_parse: true,
  16. lazy: $js.toString(() => {
  17. let code = input.split('?')[1];
  18. let data = JSON.stringify({
  19. "item": "o3",
  20. "mask": 0,
  21. "nodeCode": "001000",
  22. "project": "lyhxcx",
  23. "px": 2,
  24. "resCode": code,
  25. "userId": "d4b29595b6fe764e09078a0dad7352ff"
  26. });
  27. let html = post('https://fly.daoran.tv/API_ROP/play/get/playurl', {headers: rule.headers, body: data});
  28. log(html)
  29. let url = JSON.parse(html).playUrls.hd;
  30. input = {url: url, parse: 0}
  31. }),
  32. 一级: $js.toString(() => {
  33. let d = [];
  34. let tid = MY_CATE
  35. let pg = MY_PAGE
  36. let data = JSON.stringify({
  37. "cur": pg,
  38. "free": 0,//0 全部,1 免费,2,会员
  39. "orderby": "hot",
  40. "pageSize": 3000,
  41. "resType": 1,
  42. "sect": tid,
  43. "tagId": 0,
  44. "userId": "d4b29595b6fe764e09078a0dad7352ff",
  45. "channel": "oppo",
  46. "item": "y9",
  47. "nodeCode": "001000",
  48. "project": "lyhxcx"
  49. });
  50. let html = post(input, {headers: rule.headers, body: data});
  51. log(html)
  52. let list = JSON.parse(html).pb.dataList;
  53. list.forEach(it => {
  54. let id = 'https://zheshiyitaiojialianjie.com?' + it.code
  55. d.push({
  56. url: id,
  57. title: it.name,
  58. img: 'https://img0.baidu.com/it/u=4079405848,3806507810&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=750',
  59. desc: it.des,
  60. })
  61. })
  62. setResult(d);
  63. }),
  64. 二级: $js.toString(() => {
  65. let urls = [];
  66. let code = input.split('?')[1];
  67. let data = JSON.stringify({
  68. "albumCode": code,
  69. "cur": 1,
  70. "pageSize": 100,
  71. "userId": "d4b29595b6fe764e09078a0dad7352ff",
  72. "channel": "oppo",
  73. "item": "y9",
  74. "nodeCode": "001000",
  75. "project": "lyhxcx"
  76. });
  77. let html = post('https://fly.daoran.tv/API_ROP/album/res/list', {headers: rule.headers, body: data});
  78. log(html)
  79. let list = JSON.parse(html).pb.dataList;
  80. list.forEach(it => {
  81. urls.push(it.name + '$' + 'https://zheshiyitaiojialianjie.com?' + it.code);
  82. })
  83. VOD = {
  84. vod_pic: 'https://img0.baidu.com/it/u=4079405848,3806507810&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=750',
  85. vod_play_from: '球球啦',
  86. vod_play_url: urls.join('#')
  87. };
  88. }),
  89. 搜索: $js.toString(() => {
  90. let d = []
  91. let pg = MY_PAGE
  92. let key = KEY
  93. let data = JSON.stringify({
  94. "cur": 1,
  95. "free": 0,
  96. "keyword": key,
  97. "nodeCode": "001000",
  98. "orderby": "hot",
  99. "pageSize": 200,
  100. "project": "lyhxcx",
  101. "px": 2,
  102. "sect": [],
  103. "userId": "d4b29595b6fe764e09078a0dad7352ff"
  104. });
  105. let html = post(input, {headers: rule.headers, body: data});
  106. log(html)
  107. let list = JSON.parse(html).pb.dataList;
  108. list.forEach(it => {
  109. let id = 'https://zheshiyitaiojialianjie.com?' + it.code
  110. d.push({
  111. url: id,
  112. title: it.name,
  113. img: 'https://img0.baidu.com/it/u=4079405848,3806507810&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=750',
  114. desc: it.des,
  115. })
  116. })
  117. setResult(d);
  118. }),
  119. double: false, // 推荐内容是否双层定
  120. searchUrl: '/API_ROP/search/album/list',
  121. }